package com.ehome.plugin

import org.gradle.api.file.DirectoryProperty
import org.gradle.api.tasks.Copy
import org.gradle.api.tasks.OutputDirectory
import java.io.File

abstract class PropertyBasedCopy: Copy() {

    @get:OutputDirectory
    abstract val outputDirectory:DirectoryProperty

    override fun getDestinationDir(): File = outputDirectory.get().asFile

    override fun setDestinationDir(destinationDir: File) {
        outputDirectory.set(destinationDir)
    }
}